#include "kr36.h"

Kr36::Kr36(Type type) : m_type(type)
{

}

QString Kr36::name()
{
    if (m_type == Articles) {
        return "36Kr - 文章";
    }
    return "36Kr - 快讯";
}

QString Kr36::content(const QString &text)
{
    if (m_type == Articles) {
        return "https://www.36kr.com/search/articles/" +(text.isEmpty()?"Android":text);
    }
    return "https://www.36kr.com/search/newsflashes/" + (text.isEmpty()?"Android":text);
}

